export default class infoData {
  constructor(iteminfo, columns, services) {
    this.title = iteminfo.title
    this.iid = iteminfo.iid
    this.desc = iteminfo.desc
    this.lowNowPrice = iteminfo.lowNowPrice
    this.newprice = iteminfo.price
    this.oldprice = iteminfo.oldPrice
    this.discount = iteminfo.discountDesc
    this.columns = columns
    this.services = services
  }
}

export class commentData {
  constructor(user, content, img, created, type) {
    this.uname = user.uname
    this.avatar = user.avatar
    this.content = content
    this.img = img
    this.time = created
    this.type = type
  }
}